package com.zyd.shiro.controller;

import com.baidu.ueditor.ActionEnter;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author zor
 * @title: UeditorController
 * @projectName shop
 * @description: TODO
 * @date 2019/3/25 18:25
 */
@Controller
@CrossOrigin
@RequestMapping(value = "/ueditor")
public class UeditorController {
    @RequestMapping("")
    @ResponseBody
    public String login(HttpServletRequest request) {
        String res = getClass().getResource("/").getPath();
        return new ActionEnter(request,res).exec();
    }
}
